<?php
class Pageley_Gateway_TransactionMock implements Pageley_Gateway_Transaction{
    
    private $committed = false;
	private $rolledBack = false;
	private $gateway;
	
	public function __construct($gateway) {
		$this->gateway = $gateway;
	}
	
	public function commit() {
		$this->committed = true;
		$this->gateway->transactionComplete($this);
	}
	
	public function rollback() {
		$this->rolledBack = true;
		$this->gateway->transactionComplete($this);
	}
	
	public function isCommitted() {
		return $this->committed;
	}
	
	public function isRolledBack() {
		return $this->rolledBack;
	}
	
	public function getSingleStatement() {
		return false;
	}
}